package com.ciaojian.bytedance.service;


import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ciaojian.core.constant.RedisConstant;
import com.ciaojian.core.mapper.CouponMapper;
import com.ciaojian.core.model.Coupon;
import com.ciaojian.core.model.vo.CouponVo;
import com.ciaojian.core.service.CouponService;
import com.ciaojian.core.util.RedisUtil;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

@Service
public class CouponServiceImpl extends CouponService<CouponMapper, Coupon> implements IService<Coupon> {


    @Override
    public Date getCouponExpiredTime(Integer couponId) {
        return baseMapper.getCouponExpiredTimeById(couponId);
    }

    @Override
    public Boolean addGetNum(Integer id) {
        return this.baseMapper.addGetNumById(id);
    }


}
